<template>
  <a-modal
    :visible="visible"
    centered
    :title="$t('key.resultsToSave')"
    :okText="$t('button.sureToSubmit')"
    :cancelText="$t('button.close')"
    :maskClosable="false"
    :width="900"
    @cancel="() => { $emit('cancel') }"
    @ok="submitCheck"
  > 
    <span v-for="(item, index) of params" :key="index">{{ item }}<em v-if="index != params.length-1">, </em> </span>
    <p>{{ $t('key.isOverwritter') }}</p>
  </a-modal>
</template>

<script>
import { mapState } from 'vuex'

export default {
  props: ['visible'],
  data () {
    return {
      params: {},
    }
  },
  methods: {
    submitCheck () {
      this.$emit('coverCheck')
    }
  }
}
</script>

<style scoped lang="less">
</style>
